import request from '@/utils/request'

export function fetchAssets(query) {
  return request({
    url: '/vue-element-admin/pay/assets',
    method: 'get',
    params: query
  })
}
export function fetchPayments(query) {
  return request({
    url: '/vue-element-admin/pay/payments',
    method: 'get',
    params: query
  })
}
export function createPayment(query) {
  return request({
    url: '/vue-element-admin/payment/create',
    method: 'post',
    params: query
  })
}
export function updatePayment(query) {
  return request({
    url: '/vue-element-admin/payment/update',
    method: 'post',
    params: query
  })
}
export function deletePayment(query) {
  return request({
    url: '/vue-element-admin/payment/delete',
    method: 'post',
    params: query
  })
}
export function Cashout(query) {
  return request({
    url: '/vue-element-admin/assets/create',
    method: 'post',
    params: query
  })
}

